import React from 'react';
import { Button, Spin, Row, Col, Input, Radio, Checkbox, Modal } from 'antd';
import { WeaLocaleProvider } from 'ecCom';

const getLabel = WeaLocaleProvider.getLabel;
function AlertModal(alertType, alertText, title = getLabel(15172, '系统提示'), onOk = () => {}) {
    // const planModulStore = allStore.planModulStore;
    return (
        Modal[alertType]({
            title,
            // content: (<div style={{textAlign: 'center'}}>{alertText}</div>),
            content: alertText,
            onOk: () => {
                onOk();
            },
            okText: getLabel(826, '确定'),
        })

    );
}

// class AlertModal extends React.Component() {
//     render() {
//         return (
//             <div>111</div>
//         )
//     }
// }

export default AlertModal;
